home *** CD-ROM | disk | FTP | other *** search
- Subject: Linking & ODF Draw
- Sent: 6/3/96 4:46 AM
- Received: 6/3/96 9:01 AM
- From: Scott, scottdfl@sprynet.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- Hi,
-
- I have been going over the ODF Draw code for the new ODF, and I am
- very confused about the shape indexes used for linking. I am doing a
- part analogous to a drawing part, but my "shapes" are not stored
- linearly as they are in ODF Draw. Therefore, I am not basing my
- content classes for the part & the selection on the same base class
- as ODF Draw does, since my "shapes" are stored in a linear list in
- the selection, but not in the part.
-
- If you are still with me, my bewilderment comes in the assignment of
- the indices for linking. I can not at all tell what values are
- assigned to the shapes. It appears that when the part is internalized,
- all the shapes get numbered from 1 to n. Then, if some shapes are
- pasted in, they also get numbered from 1 to m. So, the end result is
- a set of shapes numbered: 1..n, 1..m. Am I correct? I am puzzled as
- to how this index should be used and assigned. Can I simply use a
- unique index for each and every shape? If I do that, what
- restrictions are placed on reusing that unique number on a different
- shape (in the case where that shape was deleted, and a new one added
- in its place)? I have read the ODF user guide in regards to linking,
- but no explaination is offered as to why, only "that is the way ODF
- Draw does it".
-
- I hope my quandry is clearly enough explained for others the
- understand. Any insight you can give is greatly appreciated.
-
- Thanks
-
- Scott Daniels
- e-mail: scottdfl@sprynet.com
- "Life appears the way you choose to see it"
-